package com.xc.freeapp.entity;

import java.util.Date;
import java.util.List;

import javax.validation.constraints.NotNull;

import org.springframework.format.annotation.DateTimeFormat;

import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;
import com.wordnik.swagger.annotations.ApiParam;
@ApiModel
public class Vaccineperson {
    private Integer id;
    @ApiParam(access="123",name="用户id",value="asdf")
    private Integer userid;
    @ApiModelProperty(value="头像")
    private String headpic;
    @ApiModelProperty(value="")
    private Date remindate;
    @NotNull(message="名字不能为空")
    @ApiModelProperty(value="名字")
    private String name;
    @NotNull(message="性别不能为空")
    @ApiModelProperty(value="性别")
    private Integer sex;
    
    @ApiModelProperty(value="年龄")
    private Integer age;
    @ApiModelProperty(value="备注")
    private String remark;
    @NotNull(message="生日不能为空")
    @ApiModelProperty(value="生日")
    private Date birthday;
    @ApiModelProperty(value="提醒开关(t:开启,d:关闭)")
    private char remindtime1status;
    @ApiModelProperty(value="逾期提醒开关(t:开启,d:关闭)")
    private char remindtime2status;
    @ApiModelProperty(value="提前提醒天数")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private int remindday1;
    @ApiModelProperty(value="逾期提醒天数(正数)")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private int remindday2;

	public int getRemindday1() {
		return remindday1;
	}

	public void setRemindday1(int remindday1) {
		
		this.remindday1 = remindday1;
	}

	public int getRemindday2() {
		return remindday2;
	}

	public void setRemindday2(int remindday2) {
		this.remindday2 = remindday2;
	}

	private Integer createby;

    private Date createtime;

    private Integer updateby;

    private Date updatetime;

    private String delflag;
    @ApiModelProperty(value="接种提醒")
    private Date remindtime1;
    @ApiModelProperty(value="逾期提醒")
    private Date remindtime2;
    
    public char getRemindtime1status() {
		return remindtime1status;
	}

	public void setRemindtime1status(char remindtime1status) {
		this.remindtime1status = remindtime1status;
	}

	public char getRemindtime2status() {
		return remindtime2status;
	}

	public void setRemindtime2status(char remindtime2status) {
		this.remindtime2status = remindtime2status;
	}

	private List<String> vaccines;
    
    public List<String> getVaccines() {
		return vaccines;
	}

	public void setVaccines(List<String> vaccines) {
		this.vaccines = vaccines;
	}

	public Date getRemindtime1() {
		return remindtime1;
	}

	public void setRemindtime1(Date remindtime1) {
		this.remindtime1 = remindtime1;
	}

	public Date getRemindtime2() {
		return remindtime2;
	}

	public void setRemindtime2(Date remindtime2) {
		this.remindtime2 = remindtime2;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public String getHeadpic() {
        return headpic;
    }

    public void setHeadpic(String headpic) {
        this.headpic = headpic == null ? null : headpic.trim();
    }

    public Date getRemindate() {
        return remindate;
    }

    public void setRemindate(Date remindate) {
        this.remindate = remindate == null ? null : remindate;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public Integer getCreateby() {
        return createby;
    }

    public void setCreateby(Integer createby) {
        this.createby = createby;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Integer getUpdateby() {
        return updateby;
    }

    public void setUpdateby(Integer updateby) {
        this.updateby = updateby;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public String getDelflag() {
        return delflag;
    }

    public void setDelflag(String delflag) {
        this.delflag = delflag == null ? null : delflag.trim();
    }
}